import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

//移动端一般都会采用按需加载，而不会一次全部加载（因为这样会导致首屏加载缓慢）
// import { Button, Icon, Tab, Tabs, NavBar, Rate, Popup, Collapse, CollapseItem, Sidebar, SidebarItem, Card, Stepper, Tag, Divider, Image as VanImage } from 'vant'
import vant from 'vant'

import 'vant/lib/index.css'
Vue.use(vant)
// Vue.use(Button).use(Icon).use(Tab).use(Tabs).use(NavBar).use(Rate).use(Popup).use(Collapse).use(CollapseItem).use(Sidebar).use(SidebarItem).use(Card).use(Stepper).use(Tag).use( Divider ).use(VanImage)


Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
